package com.myfum.mobile.tetris.views
{
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	
	public class MenuBar extends Sprite
	{
		public var start:Sprite;
		public var connect:Sprite;
		public var txt:TextField;
		
		public function MenuBar()
		{
			init();
		}
		
		private function init():void{
			start = new Sprite();
			connect = new Sprite();
			
			start.addChild(getText("start"));
			connect.addChild(getText("connect"));
			
			start.x = 250;
			connect.x = 360;
			
			addChild(start);
			addChild(connect);
			
			txt = getText("");
			txt.width  = 210;
			txt.height = 100;
			txt.x = 250;
			txt.y = 60;
			addChild(txt);
		}
		
		private function getText(label:String):TextField{
			var t:TextField = new TextField();
			t.text = label;
			t.width  = 100;
			t.height = 50;
			t.border = true;
			t.borderColor = 0;
			t.backgroundColor = 0xF1F1FF;
			t.background = true;
			t.selectable = false;
			return t;
		}
	}
}